.TH E1432_SET_INTERRUPT 3 E1432
.SH NAME
e1432_set_interrupt \- Set all interrupt parameters
.IX e1432_set_interrupt(3) 3
.SH SYNOPSIS
.cS
SHORTSIZ16 e1432_set_interrupt(E1432ID hw, SHORTSIZ16 ID,
                               SHORTSIZ16 priority, SHORTSIZ16 mask)
.cE
.SH DESCRIPTION
\fIe1432_set_interrupt\fR sets all parameters associated with the
interrupt capability of an E1432 or group of E1432s.

\fIhw\fR must be the result of a successful call to
\fIe1432_assign_channel_numbers\fR, and specifies the group of
hardware to talk to.

\fIID\fR is either the ID of a group of channels that was obtained
with a call to \fIe1432_create_channel_group\fR, or the ID of a single
channel.

\fIpriority\fR specifies which of the seven VME interrupt lines to
use; it is not actually a priority at all, it just specifies which
line to use.  The only legal values are 0 through 7.  Specifying 0
turns the interrupt off.  This parameter may also be set with
\fIe1432_set_interrupt_priority\fR.

\fImask\fR specifies the mask of events on which to interrupt.  This
mask is created by ORing together various condition bits.  Refer to
\fIe1432_set_interrupt_mask\fR for the definition of the conditions
which may be part of the mask.  This parameter may also be set with
\fIe1432_set_interrupt_mask\fR.
.SH "RESET VALUE"
After a reset, \fIpriority\fR is set to \fB0\fR (none), and
\fImask\fR is set to \fB0\fR (all causes masked).
.SH "RETURN VALUE"
Return 0 if successful, a (negative) error number otherwise.
.SH "SEE ALSO"
.na
e1432_reenable_interrupt, e1432_set_interrupt_mask,
e1432_set_interrupt_priority
.ad
